package com.gdkm.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.gdkm.dao.DoctorDao;

import com.gdkm.po.Doctor;
import com.gdkm.service.DoctorService;
@EnableTransactionManagement
@Service
public class DoctorServiceImpl implements DoctorService {
	@Autowired
    DoctorDao dao;

	@Override
	public List<Doctor> list2(int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list2(y, ge);
	}

	@Override
	public List<Doctor> list3(String doctor_name, String doctor_sex, int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list3(doctor_name, doctor_sex, y, ge);
	}

	@Override
	public void save1(String doctor_name, String doctor_sex) {
		// TODO Auto-generated method stub
		  dao.save1(doctor_name, doctor_sex);
		
	}

	@Override
	public void delete1(int id) {
		// TODO Auto-generated method stub
		dao.delete1(id);
	}

	@Override
	public void update(Doctor stu) {
		// TODO Auto-generated method stub
	dao.update(stu);	
	}

	
	
	
	

}
